package cn.book.book.vo;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * @author oldliu
 * @since 1.0
 */
public class BaseEntity implements Serializable {
    //分页
    private int pageNum=1;
    private int pageSize=10;

    private Map<String,Object> params;
    //params.start,param.end
    //getParams().setStart
    //getParams().put("start",xxx)
    public Map<String,Object> getParams(){
        if(params==null){
            params=new HashMap<>();
        }
        return params;
    }
    public void setParams(Map<String,Object> m){
        this.params=m;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
